<% if current_store.custom_domains.any? %>
  <div class="table-responsive rounded mt-3 border">
    <table class="table">
      <thead>
        <tr>
          <th scope="col"><%= sort_link @search, :name, Spree.t(:name) %></th>
          <th scope="col"><%= Spree.t(:active) %>?</th>
          <th scope="col"><%= Spree.t(:default) %>?</th>
          <th scope="col"></th>
        </tr>
      </thead>
      <tbody>
        <%= render collection: current_store.custom_domains, partial: 'spree/admin/custom_domains/custom_domain', cached: spree_base_cache_scope %>
      </tbody>
    </table>
  </div>
<% else %>
  <%= render 'spree/admin/shared/no_resource_found' %>
<% end %>
